package com.example.teesystem.entity.vo.IssueFeedback;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import com.example.teesystem.entity.IssueFeedback;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * @author pxr
 * @data 2022/4/1 9:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class IssueFeedbackExcel extends BaseRowModel {
    @ExcelProperty(value = {"id"},index = 0)
    private Integer id;

    /**
     * 题目id
     */
    @ExcelProperty(value = {"题目id"},index = 1)
    private Integer issueId;

    /**
     * 题干内容
     */

    @ExcelProperty(value = {"题干"},index = 2)
    private String issueQuestion;

    /**
     * 描述信息
     */
    @ExcelProperty(value = {"反馈内容"},index = 3)
    private String message;


    @ExcelProperty(value = {"反馈者姓名"},index = 4)
    private String uploadName;

    @ExcelProperty(value = {"处理人姓名"},index = 5)
    private String handlerName;

    @ExcelProperty(value = {"课程名称"},index = 6)
    private String courseName;

    public IssueFeedbackExcel(IssueFeedback issueFeedback){
        BeanUtils.copyProperties(issueFeedback,this);
    }
}
